package com.dats.util;

import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * author sig
 * since 2017/2/20
 */
public class CollectionUtil {

    public static <T> boolean isNullEmpty(List<T> list) {
        return Objects.isNull(list) || list.isEmpty();
    }

    public static <K, V> boolean isNullEmpty(Map<K, V> map) {
        return Objects.isNull(map) || map.isEmpty();
    }
}
